package com.serookie.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/5/30 23:37
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="微信小程序的用户对象", description="关于用户")
@TableName(value = "sys_user")
public class WxUser{
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "用户id")
    private String id;
    @ApiModelProperty(value = "微信的密钥")
    private String openid;
    @ApiModelProperty(value = "昵称")
    private String name;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty("性别 1表示男 0表示女")
    private Integer sex;
    @ApiModelProperty("国家")
    private String country;
    @ApiModelProperty("省")
    private String province;
    @ApiModelProperty("城市")
    private String city;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private Date updateTime;
}
